import 'package:flutter_ncsjqz_getx/generated/json/base/json_convert_content.dart';
import 'package:flutter_ncsjqz_getx/model/user_remark_list_entity.dart';

UserRemarkListEntity $UserRemarkListEntityFromJson(Map<String, dynamic> json) {
	final UserRemarkListEntity userRemarkListEntity = UserRemarkListEntity();
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		userRemarkListEntity.msg = msg;
	}
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		userRemarkListEntity.code = code;
	}
	final List<UserRemarkListData>? data = jsonConvert.convertListNotNull<UserRemarkListData>(json['data']);
	if (data != null) {
		userRemarkListEntity.data = data;
	}
	return userRemarkListEntity;
}

Map<String, dynamic> $UserRemarkListEntityToJson(UserRemarkListEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['msg'] = entity.msg;
	data['code'] = entity.code;
	data['data'] =  entity.data?.map((v) => v.toJson()).toList();
	return data;
}

UserRemarkListData $UserRemarkListDataFromJson(Map<String, dynamic> json) {
	final UserRemarkListData userRemarkListData = UserRemarkListData();
	final String? picUrl = jsonConvert.convert<String>(json['picUrl']);
	if (picUrl != null) {
		userRemarkListData.picUrl = picUrl;
	}
	final String? remarkName = jsonConvert.convert<String>(json['remarkName']);
	if (remarkName != null) {
		userRemarkListData.remarkName = remarkName;
	}
	final bool? isDisturb = jsonConvert.convert<bool>(json['isDisturb']);
	if (isDisturb != null) {
		userRemarkListData.isDisturb = isDisturb;
	}
	final int? userId = jsonConvert.convert<int>(json['userId']);
	if (userId != null) {
		userRemarkListData.userId = userId;
	}
	final dynamic? groupId = jsonConvert.convert<dynamic>(json['groupId']);
	if (groupId != null) {
		userRemarkListData.groupId = groupId;
	}
	final dynamic? groupName = jsonConvert.convert<dynamic>(json['groupName']);
	if (groupName != null) {
		userRemarkListData.groupName = groupName;
	}
	final dynamic? urls = jsonConvert.convert<dynamic>(json['urls']);
	if (urls != null) {
		userRemarkListData.urls = urls;
	}
	final int? menuMessageType = jsonConvert.convert<int>(json['menuMessageType']);
	if (menuMessageType != null) {
		userRemarkListData.menuMessageType = menuMessageType;
	}
	final String? ryUserId = jsonConvert.convert<String>(json['ryUserId']);
	if (ryUserId != null) {
		userRemarkListData.ryUserId = ryUserId;
	}
	return userRemarkListData;
}

Map<String, dynamic> $UserRemarkListDataToJson(UserRemarkListData entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['picUrl'] = entity.picUrl;
	data['remarkName'] = entity.remarkName;
	data['isDisturb'] = entity.isDisturb;
	data['userId'] = entity.userId;
	data['groupId'] = entity.groupId;
	data['groupName'] = entity.groupName;
	data['urls'] = entity.urls;
	data['menuMessageType'] = entity.menuMessageType;
	data['ryUserId'] = entity.ryUserId;
	return data;
}